package com.mapfinal.server;

import com.lambkit.core.cache.CacheManager;
import com.lambkit.core.config.annotation.PropertieConfig;

@PropertieConfig(prefix="lambkit.mapfinal")
public class MapfinalServerConfig {

	public static final String OSS = "oss";
	public static final String DISK = "disk";
	
	//rpc server
	private String rpcType = "server";
	//rpc version
	private String rpcVersion = "1.0";
	//db config name
	private String dbConfig;
	
	//缓存地址
	private String mapCachePath;//mnt/data/mapcache
	private String mapCacheType = DISK;
	private String mapServerType = "mapfinal";
	private String mapServerName = "default";
	
	//文件存储根目录
	private String fileRootPath;//mnt/data
	//默认文件上传地址
	private String fileUploadPath;//mnt/data/uploadfile
	//文件缓存地址
	private String fileCachePath;//mnt/data/filecache
	
	//缓存类型
	private String cacheType = CacheManager.TYPE_REDIS;
	
	public String getFileCachePath() {
		return fileCachePath;
	}

	public void setFileCachePath(String fileCachePath) {
		this.fileCachePath = fileCachePath;
	}

	public String getCacheType() {
		return cacheType;
	}

	public void setCacheType(String cacheType) {
		this.cacheType = cacheType;
	}

	public String getMapCachePath() {
		return mapCachePath;
	}

	public void setMapCachePath(String mapCachePath) {
		this.mapCachePath = mapCachePath;
	}

	public String getMapCacheType() {
		return mapCacheType;
	}

	public void setMapCacheType(String mapCacheType) {
		this.mapCacheType = mapCacheType;
	}

	public String getFileRootPath() {
		return fileRootPath;
	}

	public void setFileRootPath(String fileRootPath) {
		this.fileRootPath = fileRootPath;
	}

	public String getFileUploadPath() {
		return fileUploadPath;
	}

	public void setFileUploadPath(String fileUploadPath) {
		this.fileUploadPath = fileUploadPath;
	}

	public String getRpcType() {
		return rpcType;
	}

	public void setRpcType(String rpcType) {
		this.rpcType = rpcType;
	}

	public String getRpcVersion() {
		return rpcVersion;
	}

	public void setRpcVersion(String rpcVersion) {
		this.rpcVersion = rpcVersion;
	}

	public String getDbConfig() {
		return dbConfig;
	}

	public void setDbConfig(String dbConfig) {
		this.dbConfig = dbConfig;
	}

	public String getMapServerType() {
		return mapServerType;
	}

	public void setMapServerType(String mapServerType) {
		this.mapServerType = mapServerType;
	}

	public String getMapServerName() {
		return mapServerName;
	}

	public void setMapServerName(String mapServerName) {
		this.mapServerName = mapServerName;
	}
}
